# 运行时出现Ket Error
vowels = ['a', 'e', 'i', 'o', 'u']
word = input("Provide a word to search for vowels: ")
found = {}

for letter in word:
    if letter in vowels:
        found[letter] += 1

for k,v in sorted(found.items()):
    print(k,'was found',v,'time(s).')


# Traceback (most recent call last):
#   File "/Users/mac/PycharmProjects/pythonProject6/week06作业/课本代码练习P95-144.py", line 56, in <module>
#     found[letter] += 1
# KeyError: 'i'